<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>全局组件</title>
	</head>
	<body>
		<div id="app">
			<msg-com></msg-com>
		</div>
		
		<template id="msgTem">
			<div>
				<h3>我是一个局部组件</h3>
			</div>
		</template>
		<script src="../js/vue.js"></script>
		<script>
			/* let msgCom = {
				template: "#msgTem"
			} */
			
			const app = new Vue({
				el:"#app",
				components:{
					msgCom: {
						template: "#msgTem"
					}
				}
			})
		</script>
	</body>
</html>
